Add CargoError::with_cause
authorYehuda Katz <wycats@gmail.com>
Thu, 19 Jun 2014 18:49:50 +0000 (11:49 -0700)
committerYehuda Katz <wycats@gmail.com>
Thu, 19 Jun 2014 18:49:50 +0000 (11:49 -0700)
commit90149584c0213cc7cb85690dad711ecd03168ecf
treec67e07be0254246e15ee4960241fe5f6c68c9b17
parentcd6c6d66ecbc27b07d42e85ea6f61336cc3faa4f
Add CargoError::with_cause

This allows concrete implementations with a `cause` field to have a
better implementation than converting the entire original error into a
concrete representation.
src/cargo/util/errors.rs
src/cargo/util/mod.rs
src/cargo/util/result.rs